package com.epam.qanda.comparator;

import java.util.Comparator;

import com.epam.qanda.db.model.User;

public class RoleComparator implements Comparator<User>{
	@Override
	public int compare(User u1, User u2) {
		return u1.getRoleId() > u2.getRoleId() ? 1 : (u1.getRoleId() < u2
				.getRoleId() ? -1 : 0);
	}
}
